package com.javaee.term.form;

import com.javaee.term.Enums.SendProductStatusEnum;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * author 陈伯瑞
 * date 2019/12/20 0020 12:27
 * version 1.0
 **/
@Data
public class SendProductForm {

    private String sendId;

    @NotBlank(message = "客户必填")
    private String contactId;
    @NotBlank(message = "商品必选")
    private String productId;

    /**
     * 数量
     */
    @NotNull(message = "数目不能空")
    @Min(value = 1)
    private Integer productQuantity;

    private Integer finshStatus= SendProductStatusEnum.REQUIRESEND.getCode();

}
